import { Metadata } from "next";
import Image from "next/image";
import { getRandomTime } from "./actions/tools";
export async function generateMetadata(
  { },
  parent: any
): Promise<Metadata> {
  // read route params
  //  console.log(parent)
  
  return {
    title: 'product.title',
    // openGraph: {
    //   images: ['/some-specific-page-image.jpg', ...previousImages],
    // },
  }
}
export default async function Home() {
  const time1 = await getRandomTime();
  const time2 = await getRandomTime();
  return <main>
    <div>{time1}</div>
    <div>{time2}</div>
    {process.env.IMAGE_PREX}
    {/* {formateTimestampToDate(1689372800000, 'YYYY-MM-DD HH:mm:ss')} */}
  </main>;
}
